<template>
  <van-tabbar v-model="active" route>
    <van-tabbar-item
      v-for="(item, index) in list"
      :key="index"
      :icon="item.icon"
      :to="item.path"
      >{{ item.name }}</van-tabbar-item
    >
  </van-tabbar>
</template>

<script>
export default {
  data() {
    return {
      active: 0,
      list: [
        {
          path: "/index/home",
          icon: "home-o",
          name: "首页",
        },
        {
          path: "/index/tuan",
          icon: "search",
          name: "爆爆团",
        },
        {
          path: "/index/order",
          icon: "setting-o",
          name: "订单",
        },
        {
          path: "/index/mine",
          icon: "friends-o",
          name: "我的",
        },
      ],
    };
  },
};
</script>

<style lang='scss' scoped>
</style>